package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RushConfigMapper;
import com.ruoyi.system.domain.RushConfig;
import com.ruoyi.system.service.IRushConfigService;

/**
 * 爱回收配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-23
 */
@Service
public class RushConfigServiceImpl implements IRushConfigService 
{
    @Autowired
    private RushConfigMapper rushConfigMapper;

    /**
     * 查询爱回收配置
     * 
     * @param id 爱回收配置主键
     * @return 爱回收配置
     */
    @Override
    public RushConfig selectRushConfigById(Long id)
    {
        return rushConfigMapper.selectRushConfigById(id);
    }

    /**
     * 查询爱回收配置列表
     * 
     * @param rushConfig 爱回收配置
     * @return 爱回收配置
     */
    @Override
    public List<RushConfig> selectRushConfigList(RushConfig rushConfig)
    {
        return rushConfigMapper.selectRushConfigList(rushConfig);
    }

    /**
     * 新增爱回收配置
     * 
     * @param rushConfig 爱回收配置
     * @return 结果
     */
    @Override
    public int insertRushConfig(RushConfig rushConfig)
    {
        return rushConfigMapper.insertRushConfig(rushConfig);
    }

    /**
     * 修改爱回收配置
     * 
     * @param rushConfig 爱回收配置
     * @return 结果
     */
    @Override
    public int updateRushConfig(RushConfig rushConfig)
    {
        return rushConfigMapper.updateRushConfig(rushConfig);
    }

    /**
     * 批量删除爱回收配置
     * 
     * @param ids 需要删除的爱回收配置主键
     * @return 结果
     */
    @Override
    public int deleteRushConfigByIds(Long[] ids)
    {
        return rushConfigMapper.deleteRushConfigByIds(ids);
    }

    /**
     * 删除爱回收配置信息
     * 
     * @param id 爱回收配置主键
     * @return 结果
     */
    @Override
    public int deleteRushConfigById(Long id)
    {
        return rushConfigMapper.deleteRushConfigById(id);
    }
}
